package com.mi.proxy4;

import java.util.Random;

public class Jay implements Singer,Person {

	@Override
	public void sing(String songName) {
		switch (songName) {
		case "双截棍":
			System.out.println("快使用双截棍，哼哼哈嘿！");
			break;
		case "七里香":
			System.out.println("窗外的麻雀，在电线杆上斗嘴！");
			break;
		default:
			System.out.println("爷爷泡的茶，有一种味道叫做家！");
			break;
		}
		
	}

	@Override
	public void sign() {
		System.out.println("和华谊兄弟完成2017年艺人合约");
	}

	@Override
	public void work() {
		System.out.println("参加中国好声音，做中国好声音的评委和导师！");
	}

	@Override
	public int lives() throws Exception{
		Random random = new Random();
		int r = random.nextInt(2);
		if(r == 0){
			System.out.println("和昆凌吵架");
			throw new Exception();
		}else{
			System.out.println("和昆凌过幸福没满的生活哦！");
			return 100;
		}
		
	}

}
